Skip to content

fix(cluster): DevNet round 3: status says a Local Network refusal, a stopped pair reads stopped, wording, the uninstall's own incidents, the guide - #1784

Merged
jonathan308 merged 15 commits into
devfrom
integrate/devnet-round-3
Nov 4, 2026
Merged

jonathan308 merged 15 commits into
devfrom
integrate/devnet-round-3

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

DevNet round 3: what the pair-2 re-test of #1783's DevNet build (0.10.6-dev.branch.77, dev 6940be379c) found,
in one PR. Four branches, signed merges; the independent validation added three commits (Notes for reviewers).

  • R-1 (status truth): during a Local Network refusal, darkbloom status and cluster status said loading
    (exit 3) with no reason on both Macs, so an agent following the guide waited 15 minutes. They now say not_serving
    (exit 3, the existing contract) with the setup screens' own reason and next step, by the ✗'s own rule: on the Mac
    kept off, from its own service; on the leading Mac, once its part has run 20 s, from the other Mac's status. A script
    start on the leading Mac ends its wait on it too.
  • R-5: a stopped pair reads stopped (exit 4) whatever the other Mac's presence, with a line that the other Mac
    isn't answering (it read other_mac_away after the member's uninstall had stopped the pair).
  • R-3: the 2/4 Pair hint's firewall line, and the line about a reinstall, name the app ("Darkbloom Dev" in the
    DevNet app). Production's text is unchanged.
  • R-4: the leading Mac's Local Network ✗ no longer ends with the follower's raw instruction cut at 300 characters
    inside a parenthesis; the refused part's line is plain, and any ✗ line too long is cut at a word and marked "…".
  • R-6: uninstalling one app beside the other removes that install's own incident log, lock and corrupt copy, named
    in the dry run and summary; production's shared incidents.json stays while another install may use it.
  • Guide (G-R1 to G-R4 and R-1): the agent setup guide matches its second literal run (Pair again or Start over per
    Mac, the real status --solo lines, conditional waiting lines) and its verify step stops and asks the person on a
    Local Network refusal instead of waiting.

Measured, not changed (known limitation A-7/P2-15): in a 20-minute soak with ~56K-token prompts among short ones
(up to 32 at once), 102 of 178 requests timed out waiting for their first token behind a long prefill. No crash or
wedge. It's in the 0.10.8 notes as a known limitation; the fix is the top follow-up after 0.10.8.

Linked issue

None filed: the pair-2 re-test of dev 6940be379c (R-1 to R-6, G-R1 to G-R4).

Test plan

On the final head 71fd5b8149, re-run by an independent validator (overnight/round3/validation.md), prod identity
unless noted. Every check binary ran under sandbox-exec with a profile that denies ~/.darkbloom*; every swift test
was filtered and --skip-build.

  • Red first on each branch: R-1/R-5 ClusterStatusTruthTests (16 issues), R-3 onboarding check (3 failures),
    R-4 (2 + 3 issues), R-6 (4 issues); the validator's added test for a script start ending on the refusal is red with
    R-1's condition removed (exit 0 instead of 3).
  • Prod: the R-1 suite 6, CLI pair suites 72, the earlier new suites 10, neighbours 114, feat(provider): the Darkbloom mark and live line on the everyday commands, in a terminal only (stacked on #1774) #1777's look
    22, the CLI-side ProviderCore set 52; the 8-suite onboarding filter 80; fix(cluster): on a paired Mac, darkbloom start/stop/restart/status control the pair; plain cluster status --json (stacked on #1764) #1774's 8 suites 67; the
    uninstall set 97; fix(cluster): on a paired Mac, darkbloom start/stop/restart/status control the pair; plain cluster status --json (stacked on #1764) #1774's stop-path set 66.
  • ClusterOnboardingChecks 1210/0; control 229/0, placement flow-run 33 and setup 264, provisioning
    161/0; diagnostics and GLM image admission pass; ObservabilityChecks 213/0 (in the sandbox through an
    xcrun shim that adds swiftc -disable-sandbox).
  • Dev identity: the R-1 suite 6 (prints the DevNet strings), the R-3/R-4 tests 5, the earlier DevNet-name
    tests 5, the uninstall dev set 34.
  • CI's Release Integrity list, locally with Python 3.14: 41 of 43, including test-provider-identity.py. The
    other two are local-only: test-provider-test-watchdog.py needs ps, which the sandbox blocks (it passes outside),
    and .github/scripts/test-threat-diagnostics.py fails the same way at dev under Python 3.14.
  • On 71fd5b8149 (after the guide merge): make docs-check 207 OK, make docs-impact-check BASE=6940be379c
    21 files OK, make changelog-check 55 valid, git diff --check clean, test-provider-identity.py and
    test-changelog.py OK; all 15 commits signed.
  • On pair-2 after the DevNet build: cluster status on both Macs during a Local Network refusal; the stopped
    pair's status after the member's uninstall; the Pair hint's firewall line; the leader's ✗; the uninstall's incident
    files.

Components touched

  • provider-swift (Swift CLI): status/cluster status (ClusterPairSummary), the Local Network status words
    (ClusterLocalNetworkAccess), the setup screens' wording (ClusterOnboardingFlow, ClusterOnboardingLive,
    ClusterConsoleText), the uninstall inventory (ProviderUninstallPlan); libs/darkbloom-cluster's
    ClusterIncidentLog.files.
  • native runtime / MLX
  • landing (Next.js)
  • enclave (Swift)
  • CI / provider release
  • docs

Protocol / interface changes

  • No protocol/interface changes
  • Yes — described above and matching side updated

cluster status --json keeps schema 1 and its exit codes; not_serving now also covers a Local Network refusal, and
stopped takes precedence over other_mac_away for a stopped pair. New public Swift API: ClusterIncidentLog.files,
ProviderUninstallPaths.environment, and in ClusterLocalNetworkAccess: Refused, otherMacRefused() and
statusWords.

Documentation impact

  • Canonical documentation updated: docs/provider/cli-reference.md (cluster status's refusal and stopped
    precedence; the uninstall's own incident files), docs/provider/two-mac-cluster.md (the ✗'s refused-part line; the
    Local Network list), docs/provider/agent-setup.md (G-R1 to G-R4, the verify step), docs/architecture/inference.md.
  • No documentation needed — reason:

Changelog

  • Added or updated this PR's unique changelog.d/<topic>.md fragment and ran make changelog-check.
  • No user-visible change, or an explicitly authorized release/history change.

Lines in cluster-everyday-commands-on-a-pair.md (R-1, R-5), cluster-candidate-findings.md (R-3, R-4),
provider-uninstall-keep-or-remove.md (R-6) and provider-agent-setup-guide.md (the guide).

Notes for reviewers

# Branch Head Merge Conflicts
1 fix/cluster-status-truth (R-1, R-5) f92a578950 2f19f53744 none
2 fix/cluster-ln-wording (R-3, R-4) 97005b1167 ee37a2cb45 docs/architecture/inference.md: both paragraphs kept
3 fix/uninstall-own-incidents (R-6) 3153c5dc34 13e950add5 none
4 docs/agent-setup-retest (guide) 9a839b829d 71fd5b8149 none

On top of the three merges, from the independent validation (all signed):

  • 80c1905c04 refactor: ProviderCore's new public API for R-1 is only ClusterLocalNetworkAccess.Refused,
    otherMacRefused() and statusWords; the rule's steps are internal again, and localNetworkRefusalLines takes its
    final step as a parameter instead of cluster status replacing the ✗'s "Then choose Retry here." in the text. The four
    refusal strings are byte-identical before and after, in prod and dev.
  • b4c6a76854 test: a leading Mac's script start ends its wait on the refusal (exit 3).
  • 16249cedb9 changelog: the ✗'s change isn't DevNet-only.

Then the guide's merge 71fd5b8149.

  • One rule, one wording source: status and the ✗ read the same refusal (ClusterLocalNetworkAccess.Refused,
    Live's otherMacRefused and refusalIsCurrent) and the same text (localNetworkBlockedLines,
    localNetworkRefusalLines); cluster status ends with the start command instead of the ✗'s "choose Retry here".
  • R-6's reverse is deliberate: production's incidents.json stays when production is uninstalled beside the DevNet
    app, because an older build of the other install still reads and rewrites the shared file.
  • Follow-ups (not here): A-7/P2-15 head-of-line blocking; A-6, A-11, P2-14; ClusterConsoleChecks' file list; the
    catalog's Qwen max_output_length (65,536) against the pair's 32,768 cap (an owner decision).

Before And After

Behaviour

Before

flowchart TD
  LN["the member's follower refused by Local Network"] --> S1["status / cluster status on both Macs: loading, exit 3, no reason"] --> W1["an agent waits 15 minutes"]
  LN --> X1["leader ✗ ends with the follower's raw instruction, cut inside a parenthesis"]
  U["the member's uninstall stops the pair"] --> S2["leader: other_mac_away, exit 5, a countdown"]
  U --> F1["incidents.dev.json and its lock left behind"]
  H["2/4 Pair hint in the DevNet app"] --> H1["the firewall lets Darkbloom in"]
Loading

After

flowchart TD
  LN["the member's follower refused by Local Network"] --> S1["status / cluster status: not_serving, exit 3, the screens' reason and next step"] --> W1["the guide: STOP, ask the person on the named Mac"]
  LN --> X1["leader ✗: its part is running and can't reach the local network"]
  U["the member's uninstall stops the pair"] --> S2["leader: stopped, exit 4; the other Mac isn't answering"]
  U --> F1["this install's incident files removed and named"]
  H["2/4 Pair hint in the DevNet app"] --> H1["the firewall lets Darkbloom Dev in"]
Loading

Code flow

Before

flowchart LR
  st["ClusterPairSummary.state(ofStatus:)"] --> l["the status lines only"]
  le["lastErrors"] --> b["bounded(300): a hard cut"]
  inv["uninstall inventory beside the other install"] --> keep["keep ~/.darkbloom/cluster* whole"]
Loading

After

flowchart LR
  st["ClusterPairSummary.read(localNetworkRefused:)"] --> r["ClusterLocalNetworkAccess.Refused: own serviceState, or the other Mac's status past the settle time"] --> w["statusWords"]
  le["lastErrors(refusalSaid:)"] --> b["boundedAtWord(300)"]
  inv["uninstall inventory beside the other install"] --> own["ownIncidentLog: ClusterIncidentLog.files of this install"]
Loading

Refactor Pass

Each branch was reviewed; the full sections are in this PR's comments.

The three code branches and their integration: a dedicated refactor pass and independent validation
(overnight/round3/validation.md) found no blockers and made three signed commits on 13e950add5:

  • 80c1905c04 refactor(cluster), behaviour-preserving: R-1's public API narrowed to ClusterLocalNetworkAccess.Refused,
    otherMacRefused() (one call beside serviceState(), asking the other Mac only past the settle time) and
    statusWords; OnboardingLive.localNetworkRefusalLines(otherMac:app:then:) takes its step as
    localNetworkBlockedLines(app:then:) does; a test pins the ✗'s own step. The four refusal strings are byte-identical
    before and after, in prod and dev.
  • b4c6a76854 test(provider): a leading Mac's script start ends its wait on the refusal, with the ✗ line and Next:,
    exit 3 (red with R-1's condition removed).
  • 16249cedb9 docs(changelog): R-4's bullet no longer reads as DevNet-only.

Reviewed and kept: R-1 and the ✗ share one rule and one wording source; R-1's extra status request is serialized by the
exchange lock; R-5's precedence, R-3's computed hint, R-4's refusalSaid and boundedAtWord, and R-6's
ClusterIncidentLog.files and ownIncidentLog as written. Production output changes only in the intended lines.

Follow-ups, not blocking: the leading Mac's extra request (bounded per phase at 8 s) says nothing while it waits; R-5's
away also sets other_mac.answers to false outside the stopped case; the leading Mac's own darkbloom cluster
screen still shows the away countdown for a stopped pair (OnboardingLive.localStatus); boundedAtWord doesn't keep a
maximum of 1 or less (no caller).

The guide: a dedicated refactor pass (9a839b829d) made four small edits (act on what each Mac offers after an app
switch; go on when status --solo shows the cluster's part; ask the human on the Mac next names; a STOP after the
15-minute wait) and checked 36 quoted strings byte for byte against the code.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

jonathan308 and others added 15 commits November 4, 2026 04:48
…cident log

Pair-2 re-test (R-6): `darkbloom-dev uninstall --keep-models` keeps the
shared ~/.darkbloom/cluster* for the production app, and so left the
DevNet-only incident log (its log and lock, and a corrupt copy if any)
behind. As a test, both directions, with the files named by the log's own
`ClusterIncidentLog.defaultFile(homeDirectory:install:)`:

- uninstalling the non-production install removes its own incident files
  and names them in the summary; the other install's files and every
  shared cluster file stay;
- uninstalling production beside it keeps production's log: it is the
  shared folder's `incidents.json`, which an older build of the other
  install still writes.

Red at 6940be3: the non-production install's three incident files stay
and no summary line names them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ir reads stopped (red)

From the pair-2 re-test of dev @ 6940be3:
- R-1: with the member's link follower refused by macOS, both Macs'
  `status` and `cluster status` read `loading` with no reason. They must
  read not_serving with the setup screens' words: on the refused Mac its
  own service's state, on the leading Mac the other Mac's refusal under
  the ✗'s 20 s rule.
- R-5: a stopped pair whose other Mac is gone read other_mac_away; it
  must read stopped, with a line that the other Mac isn't answering.
Adds, at today's behavior, ClusterLocalNetworkAccess.Refused,
otherMacRefused, refusalCanBeCurrent, otherMacStatus and statusWords, and
ClusterPairSummary.read(localNetworkRefused:).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…says its refusal once (red)

The pair-2 re-test of DevNet 6940be3, R-3 and R-4:
- R-3: the 2/4 Pair hint's firewall bullet said "Darkbloom" in the DevNet
  app, whose firewall entry is its own name. pairingLinesNameTheApp (the
  onboarding checks) runs the pairing with the DevNet app's name;
  thePairingLinesNameThisBuildsApp checks this build's name (DevNet in a
  dev-identity build).
- R-4: the leader's Local Network ✗ added the follower's own instruction
  as a fourth line, cut at 300 characters inside a parenthesis.
  theLocalNetworkCrossSaysTheRefusalOnce and
  aLongLineIsCutAtAWordOutsideAnyParenthesis.

The seams the tests call are added with today's behaviour, so they fail
on what they check: ClusterConsoleText.boundedAtWord cuts as bounded
does, and errorLines' refusalSaid is ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r reads stopped

From the pair-2 re-test of dev @ 6940be3:
- R-1: `status` and `cluster status` read not_serving (exit 3) while
  macOS keeps a Mac's link follower off the local network, by the setup
  screens' rule and in their words: on the refused Mac its own service's
  state (ClusterLocalNetworkAccess.serviceState, as `start` reads it); on
  the leading Mac the other Mac's status, asked over the cable only while
  the pair has been starting past the ✗'s 20 s settle time. reason and
  next come from localNetworkBlockedLines and localNetworkRefusalLines,
  ending with `<cli> start` or Retry in `<cli> cluster`
  (ClusterLocalNetworkAccess.statusWords). A script start on the leading
  Mac ends its wait on it, as the ✗ does.
- R-5: a stopped pair reads stopped (exit 4) whatever the other Mac's
  presence, with "<the other Mac> isn't answering over the cable." after
  the stopped line; other_mac.answers is false.
ClusterOnboardingLive.swift is unchanged: ClusterLocalNetworkAccess calls
its internal refusal rule and words (otherMacRefused, refusalIsCurrent,
localNetworkRefusalLines, answerSeconds).
Docs: cli-reference (exit table, the refusal's words, the stopped
precedence), two-mac-cluster, architecture/inference; changelog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ays its refusal once

The pair-2 re-test of DevNet 6940be3:
- R-3: the 2/4 Pair hint's firewall bullet and the line that asks to pair
  again after a reinstall name the app (ClusterOnboardingCommand.app):
  Darkbloom Dev in the DevNet app. The prose that means the service
  stays. Production's text is unchanged.
- R-4: the Local Network ✗ already says what macOS did and what to do, so
  its line for the refused Mac now says only that its part can't reach the
  local network (errorLines' refusalSaid), instead of the follower's own
  instruction; every other ✗ keeps the part's reason (A-3). Each
  lastErrors line is cut at a word, never inside a parenthesis, and ends
  with "…" (ClusterConsoleText.boundedAtWord).

Docs: two-mac-cluster.md (the leading Mac's Local Network ✗) and
architecture/inference.md (the app's name; the ✗'s lines). Changelog: one
bullet in cluster-candidate-findings.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…de the other

R-6: with another install on this Mac, the uninstall keeps the shared
cluster folder for it, which held this install's own incident log (A-13:
each non-production install keeps its own file there).

- `ClusterIncidentLog.files` names the files a log keeps, in order: the
  log, its lock sidecar and the copy a corrupt log is moved aside to (the
  log's own rename now uses the same name).
- When the shared folder stays for the other install, the inventory lists
  this install's own incident files, from
  `ClusterIncidentLog.defaultFile(homeDirectory:install:)`, as items to
  delete before the install folder, so the summary names them ("This
  install's incident log"). Production's log is the shared
  `incidents.json`, which an older build of the other install still
  writes: it stays with the folder. When the whole cluster folder goes,
  nothing changes.
- `ProviderUninstallPaths.environment` records the install the paths are
  for.

The CLI reference, `docs/architecture/inference.md` (where the incident log is
described) and the changelog fragment say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gration

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/architecture/inference.md
…ntegration

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1 to G-R4)

An agent set up pair-2 on DevNet 0.10.6-dev.branch.77 by following the guide,
end to end. Its four differences and the status gap (R-1), fixed with the
strings of fix/cluster-status-truth (f92a578), which ships in the same dev
round:

- G-R1: after installing the other app on a paired Mac, choose Pair again
  when the screen offers it ("This Mac's Secure Enclave key changed after it
  paired (…)", Pair again / Quit), otherwise Start over on both Macs.
- G-R2: `darkbloom status --solo` on a paired Mac with nothing beside the
  pair prints "Single-Mac serving: off (this Mac serves in its two-Mac
  cluster: `darkbloom cluster status`)": go on.
- G-R3 with R-1: during a Local Network refusal, `cluster status` says
  not_serving (exit 3) with the screens' reason; the verify table now stops
  and asks the person to turn the setting on, on the Mac `next` names,
  instead of waiting 15 minutes on loading. The troubleshooting row shows the
  status signal (the leader's once its part has run 20 s). A stopped pair
  reads stopped even when the other Mac isn't answering (R-5).
- G-R4: stop, restart and a scripted start say their waiting lines only if
  the wait lasts.

fix/cluster-ln-wording (97005b1) changes no line the guide quotes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Step 1.4: after installing another app on a paired Mac, the agent acts on
  what each Mac's `darkbloom cluster` shows (Pair again on a Mac that offers
  only Pair again and Quit, else Start over), instead of one choice "on both
  Macs": one Mac can offer only Pair again while the other offers Start over,
  as the screen itself says after Pair again.
- Step 4.3: while the pair's own part runs, `status --solo` shows `Daemon:
  running` with "This is the cluster's part on this Mac, not single-Mac
  serving (…)": go on, instead of asking to stop single-Mac serving that
  doesn't run.
- Verify, the Local Network row: ask the human (the page's word for the
  person) to turn the setting on, on the Mac `next` names; the agent then
  starts the pair, so the two don't both run `darkbloom start`.
- Verify, the `loading`/`unknown` row: after 15 minutes, STOP, and the human
  runs `darkbloom cluster` on the leader. Split from the old exit-3 row, it
  had no end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e ✗'s step as a parameter

The refactor pass over the DevNet round 3 integration (R-1 with R-4).

- `ClusterLocalNetworkAccess.otherMacRefused()` is the leading Mac's one
  entry, beside `serviceState()`. It asks the other Mac's status
  (`otherMacStatus`) only once this Mac's part has run the ✗'s settle time,
  then applies the ✗'s rule (`otherMacRefused(member:own:now:)`). That rule
  and the status request are internal again, and `refusalCanBeCurrent` is
  gone. ProviderCore's public API grows by `Refused`, `otherMacRefused()` and
  `statusWords` only, and the CLI no longer runs the rule in three steps.
- `OnboardingLive.localNetworkRefusalLines(otherMac:app:then:)` takes the step
  after the instruction, as `localNetworkBlockedLines(app:then:)` does.
  `statusWords` passes the start command instead of replacing the screen's
  "Then choose Retry here." in the text, which a reworded ✗ would have left
  in `cluster status` without a sound.
- A test pins the ✗'s own step; the rule's test reads
  `OnboardingLive.refusalIsCurrent` directly.

Behaviour-preserving: the ✗'s lines, `cluster status`'s reason and next,
and when the other Mac is asked are as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Local Network refusal

R-1 made a leading Mac's script `start` end its wait once `cluster status`
reads the other Mac's refusal (`ClusterPairCommands.waitUntilServing`), as the
✗ ends the screen's wait; no test covered it. The new test gives the wait a
"Starting" look, then the refusal, then a serving look: the start ends at the
refusal with its ✗ line and next step, and exits 3.

With R-1's condition in `waitUntilServing` taken out, it fails: the wait goes
on to the serving look and exits 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The round's bullet in `cluster-candidate-findings.md` began "In the DevNet
app, …", which also scoped the Local Network ✗'s change to the DevNet app,
although every build's ✗ changed: its last line no longer repeats the
instruction cut off mid-sentence, and a ✗ line too long for the screen is cut
at a word, marked with "…". The bullet now says that first, then the two
DevNet-only names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ration

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Error Error Nov 4, 2026 1:23pm UTC
d-inference-console-ui-dev Error Error Nov 4, 2026 1:23pm UTC
d-inference-landing Ready Ready Preview Nov 4, 2026 1:23pm UTC
darkbloom-status Ready Ready Preview Nov 4, 2026 1:23pm UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 4, 2026 1:23pm UTC

Request Review

@jonathan308

Copy link
Copy Markdown
Collaborator Author

This branch's own PR body (fix/cluster-status-truth). Its refactor pass and the independent validation of the whole round are in the PR description's Refactor Pass section.

Summary

  • A Local Network refusal is said. While macOS keeps a Mac's link follower off the local network, status and
    cluster status read not_serving (exit 3) on both Macs, instead of loading with no reason. They use the setup
    screens' rule and words:
    • The Mac that is kept off reads its own service's state, as start does. It says "This Mac can't reach the
      other Mac over the cable: macOS keeps off the local network", then the steps there.
    • The leading Mac, once its part has run 20 s, reads the other Mac's refusal, as the ✗ does. It says "The other
      Mac can't reach this Mac over the cable: macOS keeps there off the local network", then the steps on that Mac.
    • next ends with <cli> start (or Retry in <cli> cluster).
    • A script start on the leading Mac ends its wait on it.
  • A stopped pair reads stopped (exit 4) even while the other Mac isn't answering, for example after a stop the
    other Mac's uninstall asked for. A line says that Mac isn't answering, and other_mac.answers is false.

Test plan

  • Red first (a48d82a6a1): ClusterStatusTruthTests fails all 5 tests, 16 issues.
  • Prod identity (DARKBLOOM_RELEASE_ENVIRONMENT=prod swift build --build-tests, filtered swift test --skip-build, sandboxed):
  • Dev identity (DARKBLOOM_RELEASE_ENVIRONMENT=dev): ClusterStatusTruthTests 5. Its exit test prints the DevNet
    wording ("Darkbloom Dev", darkbloom-dev start).
  • CI's Release Integrity commands, locally with Python 3.14.7: 41 of 43 pass in the sandbox, including
    test-provider-identity.py.
    • test-provider-test-watchdog.py passes outside the sandbox (it needs ps).
    • test-threat-diagnostics.py fails identically at 6940be379c with that Python; this PR changes nothing under
      .github/ or scripts/.
  • git diff --check, make docs-check, make docs-impact-check BASE=6940be379c, make changelog-check,
    make changelog-preview.

Docs

  • docs/provider/cli-reference.md:
    • the cluster status exit table: not_serving for a Local Network refusal, stopped while the other Mac is away,
      and other_mac_away only for a started pair;
    • a paragraph quoting the refusal's reason and next on each Mac, and the stopped precedence.
  • docs/provider/two-mac-cluster.md: the Local Network list says status and cluster status tell the same, by the
    same rule.
  • docs/architecture/inference.md: the status commands' refusal rule (ClusterLocalNetworkAccess.Refused,
    otherMacStatus, statusWords) and the stopped precedence.
  • changelog.d/cluster-everyday-commands-on-a-pair.md: one plain-words line.

Before And After

Before: behavior

flowchart TD
  A["macOS keeps the member's follower off the local network"] --> B["status and cluster status on both Macs"]
  B --> C["loading, exit 3, reason null: Loading takes a few minutes, check again"]
  D["the member's uninstall asks the pair to stop, then leaves"] --> E["the leader's control: the other Mac is gone"]
  E --> F["leader cluster status: other_mac_away, exit 5, a countdown to serving alone"]
Loading

After: behavior

flowchart TD
  A["macOS keeps the member's follower off the local network"] --> B1["member: not_serving, exit 3, This Mac can't reach the other Mac; On this Mac: turn on the app, then cli start"]
  A --> B2["leader, its part past 20 s: not_serving, exit 3, The other Mac can't reach this Mac; that Mac: turn on the app, then cli start here or Retry"]
  D["the member's uninstall asks the pair to stop, then leaves"] --> F["leader: stopped, exit 4, and the other Mac isn't answering"]
Loading

Before: code flow

flowchart LR
  LF["liveFacts"] --> RS["read the status lines"]
  RS --> ST["state of status: Starting is loading; an away mode is other_mac_away, stopped or not"]
Loading

After: code flow

flowchart LR
  LF["liveFacts"] --> RS["read the status lines"]
  RS --> ST["state of status: a stopped pair stays stopped"]
  LF --> LR["localNetworkRefusal"]
  LR -->|member| SS["serviceState blocked"]
  LR -->|leader, Starting past 20 s| OM["otherMacStatus, then otherMacRefused"]
  SS --> W1["statusWords: localNetworkBlockedLines"]
  OM --> W2["statusWords: localNetworkRefusalLines"]
  W1 --> NS["not_serving with reason and next"]
  W2 --> NS
Loading

@jonathan308

Copy link
Copy Markdown
Collaborator Author

This branch's own PR body (fix/cluster-ln-wording). Its refactor pass and the independent validation of the whole round are in the PR description's Refactor Pass section.

Summary

Two wording fixes the pair-2 re-test of DevNet 6940be379c (#1783) found in the cluster setup screens:

  • R-3: the 2/4 Pair hint's firewall line said "Darkbloom" in the DevNet app, whose firewall entry is "Darkbloom
    Dev". It, and the line that asks to pair again after a reinstall, now name the app, as the Local Network lines do.
    Production's text is unchanged.
  • R-4: the leader's Local Network ✗ ended with a fourth line that repeated the instruction in the follower's own
    words, cut at 300 characters inside a parenthesis. That line now says only that the other Mac's part can't reach the
    local network. Any ✗ line that is too long is cut at a word, never inside a parenthesis, and marked with "…".

Linked issue

None: the pair-2 re-test of 6940be379c (overnight/devnet-retest-pair2.md, R-3 and R-4).

Test plan

Prod identity unless noted; every check binary under sandbox-exec with no-darkbloom.sb; every swift test
filtered and --skip-build.

  • Red first (8afdd42e88): the R-3 onboarding check fails 3 times against dev's screens; the two R-4 tests fail
    with 2 and 3 issues against the seams kept at today's behaviour. Green at the head.
  • ClusterOnboardingChecks: 1210 passed, 0 failed.
  • ProviderCoreTests 8-suite onboarding filter: 80 passed. fix(cluster): on a paired Mac, darkbloom start/stop/restart/status control the pair; plain cluster status --json (stacked on #1764) #1774's 8 suites: 67 passed.
  • Control 229/0, placement flow-run 33, setup 264, provisioning 161/0, diagnostics and GLM image admission pass.
  • Dev identity: the R-3 name check, theNamesAreThisBuildsWithoutBeingSet and both R-4 tests pass ("Darkbloom Dev").
  • CI's Release Integrity list, locally with Homebrew's Python 3.14.7: 41 of 43 pass; the other two fail on this
    Mac's sandbox (ps) and Python version, on files this PR doesn't touch.
  • make docs-check, make docs-impact-check BASE=6940be379c, make changelog-check, git diff --check.
  • On pair-2: the 2/4 Pair hint in the DevNet app, and the leader's Local Network ✗.

Components touched

  • provider-swift (Swift CLI): the cluster setup screens' wording (ClusterOnboardingFlow, ClusterOnboardingLive,
    ClusterConsoleText).
  • native runtime / MLX
  • landing (Next.js)
  • enclave (Swift)
  • CI / provider release
  • docs

Protocol / interface changes

  • No protocol/interface changes
  • Yes — described above and matching side updated

Documentation impact

  • Canonical documentation updated: docs/provider/two-mac-cluster.md (the leading Mac's Local Network ✗) and
    docs/architecture/inference.md (the app's name in the firewall line; the ✗'s lines and their cut).
  • No documentation needed — reason:

Changelog

  • Added or updated this PR's unique changelog.d/<topic>.md fragment and ran make changelog-check.
  • No user-visible change, or an explicitly authorized release/history change.

One bullet in changelog.d/cluster-candidate-findings.md; make changelog-check: 55 valid.

Notes for reviewers

  • R-3: the hint's lines are computed now, so they read ClusterOnboardingCommand.app when they are said. Kept on
    purpose: the prose that means the service ("serve through Darkbloom", "logged in to Darkbloom", "Darkbloom retries by
    itself") and the screen's title, "Darkbloom cluster".
  • R-4: only the Local Network ✗ (waitReady) passes refusalSaid; its own two lines already say what macOS did and
    what to do. The 15-minute ✗ and the keeps-ending ✗ keep the part's reason (A-3), now cut at a word.
  • Not touched: ClusterLocalNetworkAccess.swift, ClusterService.swift, ClusterPairSummary.swift (R-1 is another
    change).

Before And After

Behaviour

Before

flowchart TD
  P["2/4 Pair, the other Mac not found (DevNet app)"] --> F["· macOS's firewall lets Darkbloom in on both Macs"]
  X["the member's follower refused by Local Network"] --> L["leader ✗, fourth line: the follower's own instruction, cut at 300 characters inside (its part is still running"]
Loading

After

flowchart TD
  P["2/4 Pair, the other Mac not found (DevNet app)"] --> F["· macOS's firewall lets Darkbloom Dev in on both Macs"]
  X["the member's follower refused by Local Network"] --> L["leader ✗, fourth line: The other Mac (…): its part is running and can't reach the local network."]
Loading

Code flow

Before

flowchart LR
  hint["otherMacNotFoundLines: a stored list, Darkbloom written in"]
  wr["waitReady: the Local Network ✗"] --> le["lastErrors"] --> el["errorLines: each part's lastError as it is"] --> b["ClusterConsoleText.bounded(300): a hard cut"]
Loading

After

flowchart LR
  hint["otherMacNotFoundLines: computed, ClusterOnboardingCommand.app"]
  wr["waitReady: the Local Network ✗"] --> le["lastErrors(refusalSaid: true)"] --> el["errorLines: a refused part said plainly"] --> b["ClusterConsoleText.boundedAtWord(300): at a word, outside parentheses, …"]
Loading

Refactor Pass

Pending: the dedicated refactor review (AGENTS.md) hasn't run; this change was made without delegating.

@jonathan308

Copy link
Copy Markdown
Collaborator Author

This branch's own PR body (fix/uninstall-own-incidents). Its refactor pass and the independent validation of the whole round are in the PR description's Refactor Pass section.

Summary

With both the production Darkbloom and Darkbloom Dev on a Mac, darkbloom-dev uninstall keeps the shared ~/.darkbloom/cluster* for production. It used to leave Darkbloom Dev's own incident log there: incidents.dev.json, its lock, and a corrupt copy if any, which #1783's A-13 introduced (R-6 from the pair-2 re-test). The uninstall now removes this install's own incident files, named by the log itself (ClusterIncidentLog.defaultFile(homeDirectory:install:), ClusterIncidentLog.files), and lists them in the dry run and the summary. Production's log is the shared folder's incidents.json, which an older build of the other install still writes, so it stays with the folder. With no other install, the whole folder goes as before.

Linked issue

Closes # (pair-2 re-test R-6; follow-up to #1783)

Test plan

  • Red first: at 6940be379c, the new test leaves the three Darkbloom Dev incident files behind and names none (4 issues)
  • Dev identity, sandboxed: ProviderUninstallTests|UninstallCommandTests: 34/34
  • Prod identity, sandboxed: the uninstall set: 97/97
  • Prod, sandboxed: fix(cluster): on a paired Mac, darkbloom start/stop/restart/status control the pair; plain cluster status --json (stacked on #1764) #1774's stop-path set: 66 in 9
  • CI's Release Integrity job, locally with Homebrew Python 3.14: 41/42; the one failure, test-threat-diagnostics.py, comes from the interpreter (Python 3.14's JSON limits) and failed the same before this branch changed any source
  • make docs-check, make docs-impact-check BASE=6940be379c, make changelog-check, git diff --check

Components touched

  • provider-swift (Swift CLI)
  • native runtime / MLX
  • landing (Next.js)
  • enclave (Swift)
  • CI / provider release
  • docs

Protocol / interface changes

  • No protocol/interface changes. New public API: ClusterIncidentLog.files and ProviderUninstallPaths.environment, both read-only.
  • Yes — described above and matching side updated

Documentation impact

  • Canonical documentation updated: docs/provider/cli-reference.md (darkbloom uninstall, what stays beside the other install).
  • No documentation needed — reason:

Changelog

  • Added or updated this PR's unique changelog.d/<topic>.md fragment and ran make changelog-check. A line in changelog.d/provider-uninstall-keep-or-remove.md.
  • No user-visible change, or an explicitly authorized release/history change.

Notes for reviewers

  • No hard-coded names. The files come from ClusterIncidentLog.defaultFile(homeDirectory:install:) and the new ClusterIncidentLog.files: the log, the lock sidecar, and corruptCopy, which the log's own corrupt-rename now uses too.
  • The reverse is deliberate. Uninstalling production beside Darkbloom Dev keeps incidents.json: the log's own note says a build from before installs had their own files still reads and rewrites the shared file. That matches the inventory's rule that ~/.darkbloom/cluster* stays while another install may use it.
  • Order: the incident items go in just before the install folder, so the app is still deleted last.

Before And After

flowchart LR
  subgraph Before
    b1["darkbloom-dev uninstall<br/>(production on this Mac)"] --> b2["~/.darkbloom/cluster* kept, whole"]
    b2 --> b3["incidents.dev.json (+ .lock, corrupt copy) left behind"]
  end
  subgraph After
    a1["darkbloom-dev uninstall<br/>(production on this Mac)"] --> a2["~/.darkbloom/cluster* kept"]
    a2 --> a3["inventory: ownIncidentLog(paths)<br/>ClusterIncidentLog.defaultFile(…install:) · .files"]
    a3 --> a4["Delete This install's incident log / lock / corrupt copy<br/>(named in dry run and summary); production's incidents.json stays"]
  end
Loading

Refactor Pass

Pending. The dedicated refactor review has not run; the coordinating parent owns this gate.

@jonathan308

Copy link
Copy Markdown
Collaborator Author

This branch's own PR body (docs/agent-setup-retest). Its refactor pass and the independent validation of the whole round are in the PR description's Refactor Pass section.

Summary

An agent set up a two-Mac pair on the DevNet build 0.10.6-dev.branch.77 by following docs/provider/agent-setup.md
literally, end to end. This fixes the four small differences it found and makes the verify step catch a Local Network
refusal, which darkbloom cluster status now reports (not_serving, exit 3, with the setup screens' reason), instead of
waiting 15 minutes on loading.

Linked issue

None filed: the 2026-11-04 DevNet re-test on pair-2 (guide differences G-R1 to G-R4; status gap R-1).

Test plan

  • G-R1 to G-R4 fixed at the lines the re-test named; R-1 and R-5 described with the strings of
    fix/cluster-status-truth @ f92a578950 (ClusterLocalNetworkAccess.statusWords,
    ClusterPairSummary.read(localNetworkRefused:)).
  • Every line added this round checked in code (the key-changed line, singleMacServingOffLine, the status reasons,
    the stopped pair's line, the conditional waiting lines).
  • make docs-check (207 files OK), make docs-impact-check BASE=6940be379c (coverage OK), make changelog-check
    (55 valid fragments), git diff --check (clean), scripts/test-provider-identity.py (11 tests OK).
  • The next literal run on the build with fix/cluster-status-truth: a Local Network refusal read through
    cluster status --json.

Components touched

  • provider-swift (Swift CLI)
  • native runtime / MLX
  • landing (Next.js)
  • enclave (Swift)
  • CI / provider release
  • docs

Protocol / interface changes

  • No protocol/interface changes
  • Yes — described above and matching side updated

Documentation impact

  • Canonical documentation updated: docs/provider/agent-setup.md.
  • No documentation needed — reason:

Changelog

  • Updated changelog.d/provider-agent-setup-guide.md (one clause) and ran make changelog-check.
  • No user-visible change, or an explicitly authorized release/history change.

Notes for reviewers

  • Merge with or after fix/cluster-status-truth @ f92a578950: the verify table's Local Network row and the
    troubleshooting row's status signal quote its not_serving reasons; before it, cluster status says loading with
    no reason.
  • fix/cluster-ln-wording @ 97005b1167 changes no line the guide quotes: the guide doesn't quote the Pair hint's
    firewall line or the ✗'s fourth line, and quotes the key-changed line by its unchanged prefix. The two branches
    conflict only in docs/architecture/inference.md.
  • The leading Mac reports the refusal only after its part has run 20 s (refusalSettleSeconds); the Mac kept off
    reports it at once.

Before And After

flowchart TB
  subgraph Before["Before (dev at 6940be379c)"]
    A1["after installing the other app"] --> B1["Start over on both Macs"]
    V1["verify: cluster status --json"] -->|"Local Network refused: loading, exit 3, no reason"| W1["check again for up to 15 minutes"]
    S1["status --solo on a paired Mac"] --> D1["look for a Daemon: line that never appears"]
  end
  subgraph After["After"]
    A2["after installing the other app"] --> P2{"Pair again offered?"}
    P2 -->|yes| Q2["Pair again on both Macs"]
    P2 -->|no| R2["Start over on both Macs"]
    V2["verify: cluster status --json"] -->|"not_serving, exit 3, a Local Network reason"| T2["STOP: the person turns it on, on the Mac next names; then start or Retry"]
    V2 -->|"loading or unknown"| L2["check again for up to 15 minutes"]
    S2["status --solo on a paired Mac"] --> G2["Single-Mac serving: off (…): go on"]
  end
Loading

Refactor Pass

Refactor Pass: pending.

This branch had an error being deployed

2 failed and 3 active deployments
Preview – d-inference-landing — 71fd5b81 Deployed Nov 4, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — 71fd5b81 Deployed Nov 4, 2026 by vercel[bot]
Preview – d-inference — 71fd5b81 Deployed Nov 4, 2026 by vercel[bot]
Preview – darkbloom-status — 71fd5b81 Deployed Nov 4, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 71fd5b81 Deployed Nov 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant